#!/bin/sh
f1=nfs_233
f2=nfs_233_galois
f3=nfs_36_svngalois
f4=nfs_36_clearcasegalois
if [ "$1" = "clear" ]
then 
	echo "receive clear command: clear $f1 $f2 $f3 $f4"
	for f in $f1 $f2 $f3 $f4;do
		umount $f
		rmdir $f
	done
	exit 0
fi


for f in $f1 $f2 $f3 $f4;do
	if [ -d $f ]
	then	umount $f
		rmdir$f
	fi
	mkdir $f
done

mount -t nfs -o nolock 192.168.1.233:/mnt/nfs $f1
mount -t nfs -o nolock 192.168.1.233:/workspace/Projects/SVN/AG016-NetAXS-4-PCA-VE/trunk/Code/Euclid2 $f2
mount -t nfs -o nolock 192.168.1.36:/home/ubuntu/WorkStation/SVN/AG016-NetAXS-4-PCA-VE/trunk/Code/Euclid2 $f3
mount -t nfs -o nolock 192.168.1.36:/home/ubuntu/WorkStation/Clearcase/sh_galois_devel/vobs/NetAXS $f4

:<<eof
read -p "check if the folder deleted :" y
if [ ! -d $f1 ] #check if the folder exist
then	mkdir -p $f1 
fi
if [ ! -d nfs_233_galois ]
then	mkdir -p nfs_233_galois
fi
if [ ! -d nfs_36_svngalois ]
then	mkdir -p nfs_36_svngalois
fi
echo 'I am here'
eof



